import React,{useState,useEffect} from 'react';
import '../../../scss/lmd/WarehouseStructure.scss'
import pic from '../ck.png'
import Table from '../../../components/packagingPopup/LmdTable';
import { WarehouseStructure_table } from '../../../tools/api';

function WarehouseStructure(props) {

  var [dataSource,setdataSource]=useState([])
  useEffect(()=>{
    datasource()
  },[])
  var datasource=()=>{
    WarehouseStructure_table().then((res)=>{
      setdataSource(res.data)
    })
  }

    return (
        <div id='warehousestructure'>
            <div className='warehousestructureheader'>
                <div className='title'>仓库整体结构</div>
                <div className='pic'><img src={pic} alt="" /></div>
            </div>
            <Table dataSource={dataSource} status={3}></Table>
        </div>
        
    );
}

export default WarehouseStructure;